Skip to content

docs(sdks): warn first-time publishers to validate SDKs before setting up publishing - #7955

Open
nerminamiller-postman wants to merge 3 commits into
mainfrom
devin/1795212892-validate-before-publishing
Open

nerminamiller-postman wants to merge 3 commits into
mainfrom
devin/1795212892-validate-before-publishing

Conversation

@nerminamiller-postman

@nerminamiller-postman nerminamiller-postman commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

A customer connected package publishing before validating their generated SDK, so incomplete and untested code went out to their users. This PR adds a caution to the Current SDK publishing pages: if you're publishing for the first time or your API is still in development, validate the generated SDK (fern generate --target <language> --preview, then build and test the output) before you set up publishing.

  • New snippet fern/products/sdks/snippets/validate-before-publishing.mdx: a generic <Warning> added to the TypeScript, Python, Java, PHP, Ruby, Rust and Swift publishing pages, at the top of the section where publishing is configured (Configure GitHub publishing, Configure Maven Central publication, or Configure sdk-config.yml).
  • Go (#publish-to-pkggodev): a tailored warning. pkg.go.dev indexes any semver tag pushed to a public repo, and the Go module proxy keeps every version, so a release can only be retracted, not deleted.
  • C# (Configure GitHub publishing): a tailored warning. nuget.org doesn't allow deleting packages, only unlisting them, and unlisted versions can still be installed by exact version.
  • Agent instructions (fern-instructions/sdks/publish.mdx): adds the same rule so coding agents don't set up publishing for a new SDK before it's validated.

Out of scope: Legacy (generators.yml) publishing pages and the deprecated Postman page.

Link to Devin session: https://app.devin.ai/sessions/4bb96101db314ea3a9224e7dd497b633
Open in Devin Desktop: https://app.devin.ai/desktop/session/4bb96101db314ea3a9224e7dd497b633?variant=devin
Requested by: @nerminamiller-postman


🟢 Devin fixed all 2 findings · Follow Devin's work

Devin Review

…setting up publishing

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 2 findings. Devin automatically fixed all 2 findings.

Fixed by Devin (2)
  • Agent publishing workflow skips validation — Moved the validation rule into Workflow as step 1, ahead of publishing setup.
  • Unversioned Go generation still releases SDKs — Go warning now says to validate before any fern generate with GitHub delivery, since release mode tags a version even without --version.

View findings in Devin Review · Follow Devin's work

Devin Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant